const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: process.env.NODE_ENV === 'production' ? '/vue3-sub-app/' : '/',
  devServer: {
    port: 8082, // 子应用运行端口
    headers: {
      'Access-Control-Allow-Origin': '*',
    },
  },
  configureWebpack: {
    output: {
      library: 'vue3-sub-app', // 子应用名称
      libraryTarget: 'umd',
    },
  },
})
